package com.njym.java.security.app.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;


/**
 * 
 * 
 * @author lijie
 * @email 717057076@qq.com
 * @date 2019-11-22 16:44:11
 */
@Table(name = "user_relation")
public class UserRelation implements Serializable {
	private static final long serialVersionUID = 1L;
	
	    //
    @Id
    private Integer id;
	
	    //用户id 
    @Column(name = "user_id")
    private Integer userId;
	
	    //好友id
    @Column(name = "friend_id")
    private Integer friendId;
	
	    //好友昵称
    @Column(name = "friend_name")
    private String friendName;
	
	    //
    @Column(name = "avatar")
    private String avatar;
	
	    //
    @Column(name = "attr2")
    private String attr2;
	
	    //
    @Column(name = "attr3")
    private String attr3;

	@Column(name = "relation")
	private Integer relation;

	public Integer getRelation() {
		return relation;
	}

	public void setRelation(Integer relation) {
		this.relation = relation;
	}

	/**
	 * 设置：
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * 获取：
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * 设置：用户id 
	 */
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	/**
	 * 获取：用户id 
	 */
	public Integer getUserId() {
		return userId;
	}
	/**
	 * 设置：好友id
	 */
	public void setFriendId(Integer friendId) {
		this.friendId = friendId;
	}
	/**
	 * 获取：好友id
	 */
	public Integer getFriendId() {
		return friendId;
	}
	/**
	 * 设置：好友昵称
	 */
	public void setFriendName(String friendName) {
		this.friendName = friendName;
	}
	/**
	 * 获取：好友昵称
	 */
	public String getFriendName() {
		return friendName;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	/**
	 * 设置：
	 */
	public void setAttr2(String attr2) {
		this.attr2 = attr2;
	}
	/**
	 * 获取：
	 */
	public String getAttr2() {
		return attr2;
	}
	/**
	 * 设置：
	 */
	public void setAttr3(String attr3) {
		this.attr3 = attr3;
	}
	/**
	 * 获取：
	 */
	public String getAttr3() {
		return attr3;
	}
}
